package chpt03;

import java.time.LocalDate;

public class PersonV2 {
	private int id = 0;
	private String name = "";
	private String tel = "";
	private LocalDate date; // 为类增加了处理日期的能力
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}

	public LocalDate getDate() {
		return date;
	}

	public void setDate(LocalDate date) {
		this.date = date;
	}

	public void show() {
		String info = "id=" + id + 
				", name=" + name +
				", tel=" + tel + 
				", date=" + date; 
		System.out.println(info);
	}
}
